home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Ham⁄GPS / IP Folder / HAMradio TCP⁄IP / autoexec.net < prev    next >
Text File  |  1994-09-06  |  11KB  |  307 lines

  1. #$realtime 100
  2. #$debug on
  3. #
  4. # If you don't want this autoexec.net file to be sent to the screen
  5. # each time you startup NET/Mac, then remove the very 1st line, or
  6. # change it to something like: ##$debug on
  7. #
  8. # -------------------------------------------------------------------
  9. #
  10. # Macintosh-specific "autoexec.net" configurationfile for NET/Mac
  11. # version 2.3.X - refer to version.c file and NET/Mac's online HELP
  12. # (APPLE-menu -> HELP) for additional commands and information.
  13. #
  14. # When installing TCP for your node, be sure to replace all
  15. # occurrences of YOURCALL here with your callsign and all
  16. # occurrences of IPADDRESS with the IP address that was
  17. # assigned to you by your local IP Address Coordinator.
  18. # (You MUST have a distinct personal IP address for every
  19. # station you put on the air; if you don't know what this
  20. # means, ask others who are active on TCP how to get one.)
  21. #
  22. # hostname - is the name of your station as listed in the hosts.net
  23. # distributed by your local coordinator.  Usually it is your callsign
  24. # but may be any name you like, as long as your coordinator approves
  25. # it.  Contact him for details.  For now, use your callsign.
  26. #
  27. # define your hostname to be 'YOURCALL.ampr.org' or just 'YOURCALL'
  28. # depending on the way it is registered in the hosts.net file
  29. #
  30. hostname YOURCALL
  31. #
  32. # ax25 mycall - callsign that is used in the ax25 packet header.
  33. # replace 'YOURCALL' below with your callsign.
  34. #
  35. ax25 mycall YOURCALL
  36. #
  37. # Path to the Hosts.Net file - It could reside on another volume, or
  38. # be buried in another folder.  Also the file can now be named what-
  39. # ever you desire.  Note that double quotes are required if there are
  40. # any space characters in the path name, otherwise they are not needed.
  41. #
  42. hostfile "HD:Net:Hosts.net"
  43. #
  44. # Attach AppleTalk:
  45. # The following describes the parameters for the AppleTalk driver.
  46. # Beginning with version 2.3.14, the AppleTalk driver will now support
  47. # DDP instead of just LAP.  This means you can use other programs to
  48. # talk to Net/Mac over an Appletalk network.
  49. #
  50. # attach argv[0] argv[1] argv[2] argv[3] argv[4] argv[5] argv[6]
  51. #
  52. # argv[0]: hardware type, must be "appletalk"
  53. # argv[1]: Protocol Type, e.g., "77"
  54. # argv[2]: device name, must be "b" ('a' is the modem port 'b' is the
  55. #          printer port)
  56. # argv[3]: mode, must be "arpa"
  57. # argv[4]: interface label, e.g., "at0"
  58. # argv[5]: maximum number of packets allowed on receive queue, e.g., "1"
  59. # argv[6]: maximum transmission unit, bytes, e.g., "586" < appletalk limitation.
  60. #
  61. # DO NOT CHANGE argv[5] or argv[6] IN THIS COMMAND LINE otherwise the Appletalk
  62. # interface won't work. If you wish to use Appletalk, remove the '#' character
  63. # in front of the command line below.
  64. #
  65. #attach appletalk 77 b arpa at0 1 586
  66. #
  67. # Attach interfaces:
  68. # Syntax for a Macintosh using the modem port for AX25:
  69. # attach <hw type> <not used but needs to be here>
  70. #                            <string version of the port  ('a' or 'b')>
  71. #                                        <mode> <label> <bufsize> <mtu> <speed>
  72. #
  73. # The following typical attach command for the Mac says that you
  74. # will use an asynchronous port, specifically port 'a' (modem
  75. # port), talking to an "ax25" (i.e. KISS-based) TNC.  The name you
  76. # will use when running TCP to refer to this port is "ax0".  You
  77. # allow a maximum of 2048 bytes of buffer; packets are no more
  78. # than 256 bytes long.  You talk to the port at 9600 bps.
  79. #
  80. attach asy 1 a ax25 ax0 2048 256 9600
  81. #
  82. # The following attach command is for a slip connection (via a modem, etc.)
  83. # The parameters are:
  84. #
  85. #attach asy 2 a slip sl0 8092 1152 19200
  86. #
  87. # Insert your personal 'hostname' as in your hosts.net-file or your IP address
  88. # in []'s:
  89. # Choose one of the 3 lines below
  90. #
  91. ip addr YOURCALL
  92. #ip addr YOURCALL.ampr.org
  93. #ip addr [your IP-number]
  94. #
  95. # The following lines define the route packets should take from your station.
  96. # The syntax is route <add|drop> <station|IPaddress> <interface> <ahost>
  97. # The line below specifies that all packet whos address begins with 44
  98. # (upper 8 bits) will be routed thru the ax0 interface.
  99. # Contact your local IP coordinator (or a local TCP/IP-using ham) for
  100. # additional help in defining the route table.
  101. #
  102. route add [44.0.0.0]/8 ax0
  103. #
  104. # The next five line are the KISS commands used to control the KISS mode
  105. # of your TNC.
  106. #
  107. # The format is:  param <label> <hex value> <hex value> ...
  108. #
  109. # Parameter 1 is TXDELAY (*10 ms)(50 = 500ms)
  110. # Parameter 2 is PPersistance
  111. # Parameter 3 is Slot Time (*10 ms)
  112. # Parameter 4 is TXTAIL (*10 ms)
  113. # Parameter 5 is Half or Full Duplex (0=Half, 1=Full)
  114. # Parameter 6 is TNC dependent - refer to your TNC manual for info.
  115. #
  116. param ax0 1 50
  117. param ax0 2 100
  118. param ax0 3 10
  119. param ax0 4 3
  120. param ax0 5 0
  121. #
  122. # Time To Live is the maximum number of hops a packet can take
  123. # before it is thrown away. This command prevents an infinite
  124. # loop from occuring with packets in the network.
  125. #
  126. ip ttl 16
  127. #
  128. # The Maximum Segment Size is the largest single transmission that
  129. # you will send. An mss of 216 corresponds to the mtu of 256 set
  130. # up in the attach command above, overhead bytes considered.
  131. #
  132. tcp mss 216
  133. #
  134. # The Window parameter establishes the maximum number of bytes
  135. # that may be outstanding before your system expects an ack. If
  136. # window is twice as big as mss, for example, there will be two
  137. # active packets on the channel at any given time... large values
  138. # of window provide improved throughput on full-duplex links, but
  139. # are a problem on the air.  Keep  mss <= window <= 2*mss if
  140. # you're on the air.
  141. #
  142. tcp window 432
  143. #
  144. # set round trip time to 5 seconds - the original documentation states
  145. # this value as seconds, where it should be milliseconds!
  146. #
  147. tcp irtt 5000
  148. #
  149. # Maximum ReTry Timer (in milliseconds).  When a link goes down or a path
  150. # is unreliable, this command sets the upper limit on the retry timer.
  151. # Don't set this timer to a (too) low value, because you may introduce a
  152. # lot of retries for a down link, which means a lot of unnecessary traffic
  153. # on the frequency. 900000 (15 Min) is the lowest recommended. The default
  154. # is 60 minutes, which works out fine for most areas.
  155. #
  156. tcp mrtt 3600000
  157. #
  158. # Tell TCP where to keep a log file - note the leading ':' character.
  159. # The current directory prefix will be appended to the front of this entry.
  160. # overwrite specifies that the existing logfile will be overwritten each time
  161. # you startup Net/Mac.  0 0 24 75  specifies where the window/size should be
  162. # created on your screen (0,0 starting coordinate, 24 lines by 75 columns)
  163. #
  164. log :spool:logs:log overwrite 0 0 24 75
  165. #
  166. #
  167. # Tell TCP to start up each of its daemons:
  168. start telnet
  169. start ftp
  170. start smtp
  171. start echo
  172. start discard
  173. start finger
  174. #
  175. # smtp timer below sets the amount of time between attempts to send
  176. # messages in the queue.  The value of 180 (seconds) sets it to every 3 min.
  177. # Three minutes is a good number if your station is up 24hrs/day.
  178. # If not, adjust to more like 10 minutes (600 seconds)
  179. #
  180. smtp timer 600
  181. #
  182. # deliver mail for strangers at a nearby gateway to another area or maybe
  183. # even a gateway to the internet. In theis example we use 'pi8hvh'
  184. #
  185. smtp gateway pi8hvh
  186. #
  187. smtp mode route
  188. #
  189. # Set the escape character - this is required for the Mac 512/Plus
  190. # keyboards.  Remove the '#' character if you have a 512/Plus.  If
  191. # you have an ADB keyboard, leave this command commented out.
  192. #
  193. #escape `
  194. #
  195. # Set the local timezone and offset to GMT (1st format)  or  let NET/Mac
  196. # figure out the offset. The (commented out) 2nd format defines MET timezone
  197. # and the offset comes from the MAP Control Panel.
  198. #
  199. tzone PST 0
  200. # tzone MET
  201. #
  202. # Setup mailbox function for AX25 connects (y=yes n=no)
  203. #
  204. mbox y
  205. #
  206. #
  207. # The following command is optional, and allows you to provide a
  208. # callsign lookup function if you have the Buckmaster CD-ROM datafile.
  209. # There are two or three parameters. The first is the path to the data file,
  210. # the second is the path to a logging file and the optional third parameter
  211. # informs NET/Mac if or not the database is encoded.
  212. #
  213. #callbk CD-NAME:HAM0:HAMCALL.ALL;1 :spool:logs:callbook_log encoded
  214. #
  215. # The following commands turn on the beacon function.
  216. # The first command set which port to beacon on.  The second line of this
  217. # command is the callsign to beacon to (QST is everyone). Do NOT change
  218. # 'callsign' to your callsign. The third line is the actual beacon message
  219. # followed by the beacon interval in seconds, and finally the last command
  220. # turns on the beacon.
  221. #
  222. beacon set ax0
  223. beacon callsign QST
  224. beacon message "TCP/IP Host [44.xxx.yyy.zzz]; - Yourtown, ST, USA"
  225. beacon interval 1200
  226. beacon enable
  227. #
  228. # Enable the Proxy ARP facility.  This function allows for automatic
  229. # digipeating (so to speak) between several stations without having
  230. # to explicidly adding arp entries.
  231. #
  232. is_es enable
  233. #
  234. # enable IP Heard command.  Keeps a running list of stations heard on
  235. # the channel.  Typing IP H at the net> prompt will display the last 20 or
  236. # so stations that have been heard.  You may also us AX25 H to see the last
  237. # 20 ax25 stations.
  238. # Due to the way NET/Mac was written IP HEARD will only be updated when
  239. # the TRACE-facility is set to ON.
  240. #
  241. ip heard on
  242. #
  243. # The next entry set the default arp address.  You may add additional arp
  244. # entries as needed.
  245. #
  246. arp add [44.4.0.0] ax0 QST-0
  247. #
  248. # AX.25 CONFIGURATION:
  249. # The values in the following entries reflect default values.
  250. # These values come into play when you are operating in the  AX.25
  251. # mode, along with your "ax25 mycall" entry above.
  252. #
  253. # Enable/Disable AX.25 digipeating
  254. #
  255. ax25 digipeat on
  256. #
  257. # Set the max number of frames allowed to remain unacknowledged--
  258. # cannot be greater than 7, and 2 is a good number:
  259. #
  260. ax25 maxframe 2
  261. #
  262. # Maximum ax25 packet length:
  263. #
  264. ax25 paclen 256
  265. #
  266. # pthresh ????
  267. #
  268. ax25 pthresh 64
  269. #
  270. # Limit the number of unsuccessful retransmissions:
  271. #
  272. ax25 retry 5
  273. #
  274. # Set the number of bytes that can be pending on an AX.25 receive
  275. # queue:
  276. #
  277. ax25 window 4096
  278. #
  279. # frack (in milliseconds)
  280. ax25 t1 15000
  281. # resptime (in milliseconds)
  282. ax25 t2 10000
  283. # check (in milliseconds)
  284. ax25 t3 180000
  285. #
  286. # Turn on the heard tracking (ax25 heard command).  This command is tells
  287. # the system to keep track of the last 30 or so ax25 callsigns that have
  288. # been heard by your station.  This is usefull is seeing who you can hear.
  289. #
  290. ax25 heard on
  291. #
  292. # define default console window location and size. 0 0 13 80 means to start the
  293. # window in the upper left corner (0,0), make it 13 lines down, and 80 columns
  294. # wide.
  295. #
  296. console 0 0 13 80
  297. #
  298. realtime on
  299. #
  300. addmenu "tcp extended\m"
  301. addmenu "tcp status\m"
  302. addmenu "-seperator1"
  303. addmenu "ax heard\m"
  304. addmenu "-seperator2"
  305. addmenu exit
  306. # End of Autoexec.net
  307.